<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<html>
<head>
    <title>Login</title>
</head>

<body>
<h1>登录页面----<span th:text="${message }"></h1>
<img alt="" src="/pic.jpg">
<form action="/login"
           commandName="user" method="post">
    用户名：<input type="text" name="username" />
    <errors path="username" cssClass="error" />
    <br />
    密码：<input type="password" name="password" />
    <errors path="password" cssClass="error" />
    <br />
    <button name="button">提交</button>
</form>
</body>
</html>